package com.wyy.test;

import com.wyy.mvc.ResponseBody;
import com.wyy.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author Wuky
 * @Time 2021/10/4 11:36
 * @Version 1.0
 **/

public class UserController {
    @ResponseBody("/login.do")
    public String login(HttpServletRequest req, HttpServletResponse resp){
        return "login success";
    }
    @ResponseView("/reg.do")
    public String reg(HttpServletRequest req, HttpServletResponse resp){
        return "success.jsp";
    }
}
